<%@ page language="java" import="java.util.*,java.sql.*,javass.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="./my1.css" rel="stylesheet" type="text/css">
   <script src="./jquery-2.1.0.js"></script>   
  </head>
  
  <body>
    <div id="out">
    <div id="title" class="in">
        <p id="title_text">欢迎登录软通培训论坛</p>
        <div>
           
            <div id="login"><a href="./login.jsp">登录</a>|<a href="./zhuce.jsp">注册</a></div>

        </div>
    </div>
    <div id="left" class="in">
        <form id="form1" name="form" action="#">
            <input class="left_input" type="submit" value="学生讨论"><br>
        </form>
    </div>
    <div id="right" class="in">
        <table id="table1"  border="1">
            <tr>
                <th>帖子标题</th><th>发帖人</th><th>最后修改时间</th>
            </tr>
            <%
            ConnectionUtil connutil=new ConnectionUtil();
    		Connection conn=connutil.getConn();
    		PreparedStatementUtil psu=new PreparedStatementUtil();
    		ResultSetUtil rsu=new ResultSetUtil();
    		String sql=" select * from v1 ";
    		PreparedStatement ps=psu.getPreparedStatement(conn, sql);
    		ResultSet rs=rsu.getResultSet(ps);
    		while(rs.next()){
    			String a=rs.getString(1);
    			String b=rs.getString(2);
    			String c=rs.getString(3);
    			
            %>
            <tr>
                <th><%=a%></th><td><%=b%></td><td><%=c%></td>
            </tr>
            <% } %>
        </table>
    </div>
</div>
 <script>
    $(function () {
        $("#last").hide();
    })
    $("#cc1").mouseenter(function () {
        $("#last").css("display","block");
    })
    $("#won").mouseleave(function () {
        $("#last").css("display","none")
    })

</script> 
  </body>
</html>
